﻿using FriendStar.Code;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using FriendStar.Application.BaseData;
using FriendStar.Domain.Entity.BaseData;

namespace FriendStar.Web.Areas.BaseData.Controllers
{
    public class BUS_SJ_DictionaryController : Controller
    {
        //发生方式   零件分类
        // GET: /BaseData/BUS_SJ_Dictionary/

        private BUS_SJ_DictionaryApp dutyApp = new BUS_SJ_DictionaryApp();

        [HttpGet]
        [HandlerAjaxOnly]    
        public ActionResult GetGridJson(string keyword)
        {
            var data = dutyApp.GetList(keyword);
            return Content(data.ToJson());
        }
        public ActionResult DictionaryStyle()
        {
            var data = dutyApp.DictionaryStyle(Configs.GetValue("UseUnit"), "01");
            return Content(data.ToJson());
        }

    }
}
